package xin.nick.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Auther: Nick inickning@outlook.com
 * @Date: 2021/3/9 22:53
 * @Description:
 */
@Component
public class Client implements CommandLineRunner {

    @Autowired
    private IUserService userService;

    @Override
    public void run(String... args) throws Exception {
        System.out.println(userService.getUserInfoById(1));
    }
}
